
import ftputil


ftp_server = '127.0.0.1'
username = 'yqluser'
password = '123'

# 配置连接参数
with ftputil.FTPHost(ftp_server, username, password) as host:
    host.upload('d://a.txt', 'a.txt')